package com.fpd.model.bean;

import java.math.BigDecimal;
import org.springframework.stereotype.Component;

/**
 * @desc 调用Python接口做数据分析时用到的数据模型
 * @author wujiangbo
 * @date 2019年11月26日 下午2:02:53
 */
@Component
public class PythonModel {

	private String metadataId;// metadata主键ID

	private String sex;// 性别（0：男；1：女；2：保密；3：未知）

	private String birthday;// 出生日期

	private int yuqiDay;// 逾期天数

	private int hasBackNumber;// 已还期数

	private int loanPeriod;// 期数

	private int isAnalysis;// 期数

	public int getIsAnalysis() {
		return isAnalysis;
	}

	public void setIsAnalysis(int isAnalysis) {
		this.isAnalysis = isAnalysis;
	}

	private BigDecimal totalRepaymentAmount;// 累计还款金额

	private BigDecimal loanAmount;// 贷款额

	private String spouseName;// 配偶姓名

	private String contractNumber;// 合同号

	private String custIdNumber;// 身份证号

	private int result;// 催收结果（0：失败；1：成功）

	@Override
	public String toString() {
		return "PythonModel{" + "metadataId='" + metadataId + '\'' + ", sex='" + sex + '\'' + ", birthday='" + birthday + '\'' + ", yuqiDay=" + yuqiDay + ", hasBackNumber=" + hasBackNumber + ", loanPeriod=" + loanPeriod + ", totalRepaymentAmount=" + totalRepaymentAmount + ", loanAmount=" + loanAmount + ", spouseName='" + spouseName + '\'' + ", contractNumber='" + contractNumber + '\'' + ", custIdNumber='" + custIdNumber + '\'' + ", result=" + result + '}';
	}

	public String getCustIdNumber() {
		return custIdNumber;
	}

	public void setCustIdNumber(String custIdNumber) {
		this.custIdNumber = custIdNumber;
	}

	public String getMetadataId() {
		return metadataId;
	}

	public void setMetadataId(String metadataId) {
		this.metadataId = metadataId;
	}

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getContractNumber() {
		return contractNumber;
	}

	public void setContractNumber(String contractNumber) {
		this.contractNumber = contractNumber;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		if ("0".equals(sex)) {
			this.sex = "男";
		} else if ("1".equals(sex)) {
			this.sex = "女";
		} else if ("2".equals(sex)) {
			this.sex = "保密";
		} else if ("3".equals(sex)) {
			this.sex = "未知";
		} else {
			this.sex = "";
		}
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public int getYuqiDay() {
		return yuqiDay;
	}

	public void setYuqiDay(int yuqiDay) {
		this.yuqiDay = yuqiDay;
	}

	public int getHasBackNumber() {
		return hasBackNumber;
	}

	public void setHasBackNumber(int hasBackNumber) {
		this.hasBackNumber = hasBackNumber;
	}

	public int getLoanPeriod() {
		return loanPeriod;
	}

	public void setLoanPeriod(int loanPeriod) {
		this.loanPeriod = loanPeriod;
	}

	public BigDecimal getTotalRepaymentAmount() {
		return totalRepaymentAmount;
	}

	public void setTotalRepaymentAmount(BigDecimal totalRepaymentAmount) {
		this.totalRepaymentAmount = totalRepaymentAmount;
	}

	public BigDecimal getLoanAmount() {
		return loanAmount;
	}

	public void setLoanAmount(BigDecimal loanAmount) {
		this.loanAmount = loanAmount;
	}

	public String getSpouseName() {
		return spouseName;
	}

	public void setSpouseName(String spouseName) {
		this.spouseName = spouseName;
	}

}
